package com.jishuo.nontax.bean.vo;

import com.jishuo.nontax.bean.message.SetCheckDataDTO;
import lombok.Data;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class CheckDataVO implements Serializable{
	
	private Long billid;
	
	private String billnum;

	private Long bankid;
	
	private String paybankdt;
	
	private String bankaffirm;
	
	private BigDecimal funds;

	private String accountcode;
	private BigDecimal latefee;
	private String billno;

    public CheckDataVO(){}

    public CheckDataVO(SetCheckDataDTO bean){
        if(bean.getBillid()!=null){
            this.billid =Long.valueOf(bean.getBillid());
        }
        if(bean.getFunds()!=null){
            this.funds=new BigDecimal(bean.getFunds());
        }
        if(bean.getBankid()!=null){
            this.bankid=Long.valueOf(bean.getBankid());
        }

        this.billnum=bean.getBillnum();
        this.paybankdt=bean.getPaybankdt();
        this.bankaffirm=bean.getBankaffirm();
    }

}
